package com.giscloud.amp.service.regis.impl;

import com.giscloud.amp.core.ServiceConstConfig;
import com.giscloud.amp.entity.regis.dto.DpProjectDTO;
import com.giscloud.amp.service.regis.DpProjectService;
import com.giscloud.datasource.page.PageInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

/**
 * @Author:gxd
 * @Description: 权限服务类
 * @Date: 17:19 2018/2/24
 * @Modified By:
 */
@Service("dpProjectServiceImpl")
public class DpProjectServiceImpl implements DpProjectService {

    private final static Logger log = LoggerFactory.getLogger(DpProjectServiceImpl.class);

    @Autowired
    private ServiceConstConfig serviceConstConfig;

    @Override
    public PageInfo findProjectByName(DpProjectDTO dpProjectDTO) {
        String param = "page="+dpProjectDTO.getPage()+"&rows="+dpProjectDTO.getRows()+"&projectName="+
                dpProjectDTO.getProjectName();
//        String result = HttpRequest.sendPost(serviceConstConfig.getDpUrl()+"dpAmpApi/findProjectByName.do",param);
//        Gson gson = new Gson();
//        Pagination pagination = gson.fromJson(result,Pagination.class);
        return PageInfo.of(new ArrayList<>());
    }
}
